//
//  ViewControllerB.m
//  传值-Xib
//
//  Created by student on 16/2/25.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "ViewControllerB.h"

@interface ViewControllerB ()

@property (weak, nonatomic) IBOutlet UILabel *loginInfoLabel;
@end

@implementation ViewControllerB

- (void)viewDidLoad {
    [super viewDidLoad];
    self.loginInfoLabel.text = [NSString stringWithFormat:@"用户名:%@密码:%@\n%@",self.username,self.password,                             [self.username isEqualToString:@"xiaobai"]&&[self.password isEqualToString:@"123"]?@"登陆成功":@"登陆失败"];
}
- (IBAction)cancelBtnPressed:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
